package com.oa.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value="用户假期表")
@TableName("admin_user_holiday")
@Data
public class UserHoliday extends Model<UserHoliday> {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("假期ID")
    private Long holidayId;

    @ApiModelProperty("已请天数")
    private Double alreadyUsedDay;

    @ApiModelProperty("剩余假期")
    private Double surplusDay;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
